Arma Reforger Script API
|
Public Member Functions | |
override float | GetResourceGridRange () |
float | GetResourceRange () |
float | GetBuyMultiplier () |
float | GetSellMultiplier () |
override float | GetAggregatedResourceValue () |
override float | GetAggregatedMaxResourceValue () |
override int | GetContainerCount () |
override SCR_ResourceContainerQueueBase | GetContainerQueue () |
ScriptInvoker | GetOnResourceRangeChanged () |
ScriptInvoker | GetOnBuyMultiplierChanged () |
ScriptInvoker | GetOnSellMultiplierChanged () |
ScriptInvoker | GetOnConsumtionStateChanged () |
ScriptInvoker | GetOnExchangeStateChanged () |
EResourceGeneratorID | GetGeneratorIdentifier () |
override EResourceGeneratorID | GetIdentifier () |
bool | IsIgnoringItself () |
bool | IsConsuming () |
bool | IsExchanging () |
override bool | ShouldUpdate () |
override bool | CanInteractWith (notnull SCR_ResourceContainer container) |
override int | FindContainer (notnull SCR_ResourceContainer container) |
bool | SetResourceRange (float value, bool notifyChange=true) |
bool | SetBuyMultiplier (float value, bool notifyChange=true) |
bool | SetSellMultiplier (float value, bool notifyChange=true) |
bool | EnableConsumtion (bool shouldEnable, bool notifyChange=true) |
bool | EnableExchange (bool shouldEnable, bool notifyChange=true) |
override bool | RegisterContainer (notnull SCR_ResourceContainer container) |
override bool | RegisterContainerForced (notnull SCR_ResourceContainer container) |
override bool | UnregisterContainer (int containerIndex) |
override bool | UnregisterContainer (notnull SCR_ResourceContainer container) |
SCR_ResourceConsumtionResponse | RequestAvailability (float resourceCost, bool performFullQuery=false) |
SCR_ResourceConsumtionResponse | RequestConsumtion (float resourceCost) |
void | DebugDraw () |
override void | UpdateContainerResourceValue (SCR_ResourceContainer container, float previousValue) |
override void | UpdateContainerMaxResourceValue (SCR_ResourceContainer container, float previousValue) |
override void | Initialize (notnull IEntity owner) |
override void | Clear () |
Public Member Functions inherited from SCR_ResourceInteractor | |
override int | GetGridUpdateId () |
float | GetResourceGridRange () |
float | GetAggregatedResourceValue () |
float | GetAggregatedMaxResourceValue () |
int | GetContainerCount () |
vector | GetLastPosition () |
EResourceType | GetResourceType () |
SCR_ResourceContainerQueueBase | GetContainerQueue () |
ScriptInvoker< SCR_ResourceInteractor, float > | GetOnResourcesChanged () |
ScriptInvoker< SCR_ResourceInteractor, float > | GetOnMaxResourcesChanged () |
EResourceGeneratorID | GetIdentifier () |
override bool | IsGridUpdateIdGreaterThan (int gridUpdateId) |
bool | IsAllowed (notnull SCR_ResourceContainer container) |
bool | IsAllowed (notnull IEntity entity, EResourceType resourceType) |
bool | CanInteractWith (notnull SCR_ResourceContainer container) |
int | FindContainer (notnull SCR_ResourceContainer container) |
override void | SetGridUpdateId (int gridUpdateId) |
void | UpdateLastPosition () |
Updates the last known position of the interactor. | |
bool | RegisterContainer (notnull SCR_ResourceContainer container) |
bool | RegisterContainerForced (notnull SCR_ResourceContainer container) |
bool | UnregisterContainer (int containerIndex) |
bool | UnregisterContainer (notnull SCR_ResourceContainer container) |
void | Replicate () |
void | ReplicateEx () |
void | UpdateContainerResourceValue (SCR_ResourceContainer container, float previousValue) |
void | UpdateContainerMaxResourceValue (SCR_ResourceContainer container, float previousValue) |
void | OnResourceGridUpdated (notnull SCR_ResourceGrid grid) |
Gets called when the interactor container queue is updated by the resource grid. | |
void | OnResourcesChanged (float previousValue) |
void | OnMaxResourcesChanged (float previousValue) |
void | OnContainerRegistered (notnull SCR_ResourceContainer container) |
void | OnContainerUnregistered (notnull SCR_ResourceContainer container) |
void | Initialize (notnull IEntity owner) |
override void | Clear () |
Public Member Functions inherited from SCR_ResourceActor | |
Color | GetDebugColor () |
int | GetGridUpdateId () |
vector | GetOwnerOrigin () |
string | GetDebugName () |
int | GetDebugNameHash () |
SCR_ResourceComponent | GetComponent () |
IEntity | GetOwner () |
EResourceRights | GetResourceRight () |
bool | ShouldUpdate () |
bool | IsIsolated () |
bool | IsGridUpdateIdGreaterThan (int gridUpdateId) |
void | SetResourceRights (EResourceRights rights) |
void | SetGridUpdateId (int gridUpdateId) |
void | Update (float timeslice) |
void | UpdateInner (float timeslice) |
void | Clear () |
void | ~SCR_ResourceActor () |
Static Public Member Functions | |
static void | Encode (SSnapSerializerBase snapshot, ScriptCtx ctx, ScriptBitSerializer packet) |
static bool | Decode (ScriptBitSerializer packet, ScriptCtx ctx, SSnapSerializerBase snapshot) |
static bool | SnapCompare (SSnapSerializerBase lhs, SSnapSerializerBase rhs, ScriptCtx ctx) |
static bool | PropCompare (SCR_ResourceConsumer instance, SSnapSerializerBase snapshot, ScriptCtx ctx) |
static bool | Extract (SCR_ResourceConsumer instance, ScriptCtx ctx, SSnapSerializerBase snapshot) |
static bool | Inject (SSnapSerializerBase snapshot, ScriptCtx ctx, SCR_ResourceConsumer instance) |
Protected Member Functions | |
void | OnResourceRangeChanged (float previousValue) |
void | OnBuyMultiplierChanged (float previousValue) |
void | OnSellMultiplierChanged (float previousValue) |
void | OnConsumtionStateChanged (float previousValue) |
void | OnExchangeStateChanged (float previousValue) |
bool | PropCompareNetworkedVariables (SSnapSerializerBase snapshot, ScriptCtx hint) |
bool | ExtractNetworkedVariables (SSnapSerializerBase snapshot, ScriptCtx hint) |
bool | InjectNetworkedVariables (SSnapSerializerBase snapshot, ScriptCtx hint) |
Static Protected Attributes | |
static const int | CODEC_CONSUMER_PACKET_BYTESIZE = 38 |
Static Protected Attributes inherited from SCR_ResourceActor | |
static const float | UPDATE_PERIOD = 10.0 / 60.0 |
static const int | CODEC_GENERATOR_PACKET_BYTESIZE = 32 |
Additional Inherited Members | |
Public Attributes inherited from SCR_ResourceActor | |
string | m_sDebugName |
Static Public Attributes inherited from SCR_ResourceActor | |
static const float | RESOURCES_LOWER_LIMIT = 0.0 |
override bool SCR_ResourceConsumer.CanInteractWith | ( | notnull SCR_ResourceContainer | container | ) |
[in] | container |
Implements SCR_ResourceInteractor.
Implemented in SCR_ResourceConsumerServicePoint.
override void SCR_ResourceConsumer.Clear | ( | ) |
Implements SCR_ResourceInteractor.
Implemented in SCR_ResourceConsumerServicePoint.
void SCR_ResourceConsumer.DebugDraw | ( | ) |
|
static |
[in] | packet | |
[in] | ctx | |
[in] | snapshot |
bool SCR_ResourceConsumer.EnableConsumtion | ( | bool | shouldEnable, |
bool | notifyChange = true |
||
) |
[in] | shouldEnable | |
[in] | notifyChange |
bool SCR_ResourceConsumer.EnableExchange | ( | bool | shouldEnable, |
bool | notifyChange = true |
||
) |
[in] | shouldEnable | |
[in] | notifyChange |
|
static |
[in] | snapshot | |
[in] | ctx | |
[in] | packet |
|
static |
[in] | instance | |
[in] | ctx | |
[in] | snapshot |
|
protected |
override int SCR_ResourceConsumer.FindContainer | ( | notnull SCR_ResourceContainer | container | ) |
override float SCR_ResourceConsumer.GetAggregatedMaxResourceValue | ( | ) |
Implements SCR_ResourceInteractor.
override float SCR_ResourceConsumer.GetAggregatedResourceValue | ( | ) |
Implements SCR_ResourceInteractor.
float SCR_ResourceConsumer.GetBuyMultiplier | ( | ) |
override int SCR_ResourceConsumer.GetContainerCount | ( | ) |
Implements SCR_ResourceInteractor.
override SCR_ResourceContainerQueueBase SCR_ResourceConsumer.GetContainerQueue | ( | ) |
Implements SCR_ResourceInteractor.
EResourceGeneratorID SCR_ResourceConsumer.GetGeneratorIdentifier | ( | ) |
override EResourceGeneratorID SCR_ResourceConsumer.GetIdentifier | ( | ) |
Implements SCR_ResourceInteractor.
ScriptInvoker SCR_ResourceConsumer.GetOnBuyMultiplierChanged | ( | ) |
ScriptInvoker SCR_ResourceConsumer.GetOnConsumtionStateChanged | ( | ) |
ScriptInvoker SCR_ResourceConsumer.GetOnExchangeStateChanged | ( | ) |
ScriptInvoker SCR_ResourceConsumer.GetOnResourceRangeChanged | ( | ) |
ScriptInvoker SCR_ResourceConsumer.GetOnSellMultiplierChanged | ( | ) |
override float SCR_ResourceConsumer.GetResourceGridRange | ( | ) |
Implements SCR_ResourceInteractor.
float SCR_ResourceConsumer.GetResourceRange | ( | ) |
float SCR_ResourceConsumer.GetSellMultiplier | ( | ) |
override void SCR_ResourceConsumer.Initialize | ( | notnull IEntity | owner | ) |
[in] | owner |
Implements SCR_ResourceInteractor.
Implemented in SCR_ResourceConsumerServicePoint.
|
static |
[in] | snapshot | |
[in] | ctx | |
[in] | instance |
|
protected |
bool SCR_ResourceConsumer.IsConsuming | ( | ) |
bool SCR_ResourceConsumer.IsExchanging | ( | ) |
bool SCR_ResourceConsumer.IsIgnoringItself | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
[in] | instance | |
[in] | snapshot | |
[in] | ctx |
|
protected |
override bool SCR_ResourceConsumer.RegisterContainer | ( | notnull SCR_ResourceContainer | container | ) |
override bool SCR_ResourceConsumer.RegisterContainerForced | ( | notnull SCR_ResourceContainer | container | ) |
SCR_ResourceConsumtionResponse SCR_ResourceConsumer.RequestAvailability | ( | float | resourceCost, |
bool | performFullQuery = false |
||
) |
[in] | resourceCost | |
[in] | performFullQuery |
SCR_ResourceConsumtionResponse SCR_ResourceConsumer.RequestConsumtion | ( | float | resourceCost | ) |
[in] | resourceCost |
bool SCR_ResourceConsumer.SetBuyMultiplier | ( | float | value, |
bool | notifyChange = true |
||
) |
[in] | value | |
[in] | notifyChange |
bool SCR_ResourceConsumer.SetResourceRange | ( | float | value, |
bool | notifyChange = true |
||
) |
[in] | value | |
[in] | notifyChange |
bool SCR_ResourceConsumer.SetSellMultiplier | ( | float | value, |
bool | notifyChange = true |
||
) |
[in] | value | |
[in] | notifyChange |
override bool SCR_ResourceConsumer.ShouldUpdate | ( | ) |
Implements SCR_ResourceActor.
|
static |
[in] | lhs | |
[in] | rhs | |
[in] | ctx |
override bool SCR_ResourceConsumer.UnregisterContainer | ( | int | containerIndex | ) |
override bool SCR_ResourceConsumer.UnregisterContainer | ( | notnull SCR_ResourceContainer | container | ) |
override void SCR_ResourceConsumer.UpdateContainerMaxResourceValue | ( | SCR_ResourceContainer | container, |
float | previousValue | ||
) |
[in] | container | |
[in] | previousValue |
Implements SCR_ResourceInteractor.
override void SCR_ResourceConsumer.UpdateContainerResourceValue | ( | SCR_ResourceContainer | container, |
float | previousValue | ||
) |
[in] | container | |
[in] | previousValue |
Implements SCR_ResourceInteractor.
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |