* NetworkInput now has new attribute called ExposeToScript. NetworkInput with this attribute set to True will be exposed to behavior context. Also added a CreateFromValues for the NetworkInput where scripters can create an instance of the MyComponentNetworkInput class which will eventually be passed around CreateInput and ProcessInput events.
Signed-off-by: Gene Walters <genewalt@amazon.com>
* Adding Create Input event handler. SC can now receive the event to create input, and send it over the network
Signed-off-by: Gene Walters <genewalt@amazon.com>
* Auto-component controller will now generate CreateInput/ProcessInput methods if they have input exposed to script, not ready for use yet, just stubbed in
Signed-off-by: Gene Walters <genewalt@amazon.com>
* Reducing code replication by putting common network input variables into AutoComponent_Common.jinja
Signed-off-by: Gene Walters <genewalt@amazon.com>
* Fix minor comment typo in the CreateInput method
Signed-off-by: Gene Walters <genewalt@amazon.com>
* Small fix. Changing ebus call from MyComponentNameCreateInput to just CreateInput. It's part of the MyComponentRequestBus so adding the component name before CreateInput is noisy
Signed-off-by: Gene Walters <genewalt@amazon.com>
* Cleaning with jinja a bit using macro calls to iterate over scriptable netinputs
Signed-off-by: Gene Walters <genewalt@amazon.com>
* ProcessInput will now be triggered in script
Signed-off-by: Gene Walters <genewalt@amazon.com>
* ProcessInput event is sent to script. Script can now create and process input. Tested locally with a simple script.
Signed-off-by: Gene Walters <genewalt@amazon.com>
* Created a seperate CreateInputFromScript and ProcessInputFromScript. Developers no longer need to remember to call the BaseClass::CreateInput and ProcessInput since CreateInputFromScript will automatically be called beforehand.
Signed-off-by: Gene Walters <genewalt@amazon.com>
* WIP. Autonomous->Authority network properties now functional. Still need some research in regards to entity ownership when it comes to the PropertyPublisher.
Signed-off-by: Gene Walters <genewalt@amazon.com>
* WIP. Exposing Auton->Auth Properties accessors and onchange events
Signed-off-by: Gene Walters <genewalt@amazon.com>
* Fix propertypublisher constructor to skip the creation state if we arent the owner. Removing ClientToServerReplicationWindow, return to just using NullReplicationWindow.
Signed-off-by: Gene Walters <genewalt@amazon.com>
* Reverting some wip debug prints
Signed-off-by: Gene Walters <genewalt@amazon.com>
* Minor whitespacing fix
Signed-off-by: Gene Walters <genewalt@amazon.com>
* minor undoing of whitespacing
Signed-off-by: Gene Walters <genewalt@amazon.com>
* NullReplicationWindow MaxReplication is 0, but now Autonomous entity updates will always be added to the send list (ignoring the max replication limit)
Signed-off-by: Gene Walters <genewalt@amazon.com>
* Updating PropertyPublisher comment to explicitly call out if we dont own the entity locally, the remote replicator must exist
Signed-off-by: Gene Walters <genewalt@amazon.com>
* Renaming RepiclationWindow GetMaxEntityReplicatorSendCount to GetMaxProxyEntityReplicatorSendCount; this number only affects the number of proxy sends and allows autonomous properties to always send
Signed-off-by: Gene Walters <genewalt@amazon.com>