Class ModuleTimer
Inheritance
System.Object
ModuleTimer
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AltV.Net.Client.Elements.Entities
Assembly: AltV.Net.Client.dll
Syntax
public class ModuleTimer : IModuleTimer
Constructors
| Improve this Doc View SourceModuleTimer(Action, UInt32, Boolean, String, Int32)
Declaration
public ModuleTimer(Action callback, uint interval, bool once, string file = "[unknown].cs", int line = 0)
Parameters
Type | Name | Description |
---|---|---|
Action | callback | |
System.UInt32 | interval | |
System.Boolean | once | |
System.String | file | |
System.Int32 | line |
Properties
| Improve this Doc View SourceCallback
Declaration
public Action Callback { get; }
Property Value
Type | Description |
---|---|
Action |
Interval
Declaration
public uint Interval { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
LastRun
Declaration
public long LastRun { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Location
Declaration
public string Location { get; }
Property Value
Type | Description |
---|---|
System.String |
Once
Declaration
public bool Once { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceUpdate(Int64, String)
Declaration
public bool Update(long curTime, string resourceName)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | curTime | |
System.String | resourceName |
Returns
Type | Description |
---|---|
System.Boolean |