A type describes a range of possible values. This includes numbers or other primitive types, but also more abstract concepts ranging from text, users, join requests up to just “parts of a world”.
Categorization
Types can be split into different categories. In many situations there is some kind of distinction between “simple” and “complex” types.
The specifics are dependent on the context you are talking about.
ProtoFlux
Execution of ProtoFlux is a local phenomenon that runs on the computer that started it. In fact the ProtoFlux implementation has been designed to be independent of FrooxEngine.[Citation needed]
In summary it stays close to the underlying C# standards. C# differentiates types based on where the value is stored:
Category (ProtoFlux) | Category (C#) | Description |
---|---|---|
Value Type | Value Type | The value is stored directly within the variable/property. |
Object Type | Reference Type | The value exists somewhere in memory. Variables/properties contain a reference to the memory location. |
Also see: Enums, a subcategory of value types.
World Model
The world model of Resonite needs to be kept consistent for multiple users. Where a value is stored locally is far less important than how it is communicated across the network.
In effect this means that when dealing with components and their properties one has to differentiate among the following categories:
Category | All Types | Description |
---|---|---|
Values | Value Types, strings, URIs, Nullable and IEncodable | The value will be written into and read from a network message as-is. |
References | IWorldElement and all its derivatives (e.g. Slot) | The referenced object can be uniquely identified by a RefID which will be sent via the network. The receiver will then do a lookup to determine their own instance of that object. |
Types | Type | Types aren't just used in properties. They are also very important internally to inform other users of newly created components. Therefore they are preferrably encoded as a simple number to avoid wasting network traffic. If such a shorthand is not yet available the full type name will be transmitted instead. As of 2024.4.3.1170 the shorthand is lazily and asynchronously generated by the host. There is one lookup-table per Session.(Speculation: The requirement of session information may be the reason why this has a separate implementation to values.) |
Delegates | WorldDelegate | Delegates reference a method of a specific object instance. The network message contains the RefID to identify the instance and the name/declaring type of the method. |
Subcategories
This category has the following 2 subcategories, out of 2 total.
E
- Enums (158 P)
V
- Value Types (42 P)
Pages in category "Type"
The following 200 pages are in this category, out of 224 total.
(previous page) (next page)A
B
C
D
- Type:DataFeedItemChange
- Type:DateTimeKind
- Type:DayOfWeek
- Type:DependencyHandling
- Type:DepthEncoding
- Type:DriveRef`1
- Type:DualInputHandling
- Type:DynamicBoneCollisionDataType
- Type:DateTime
- Type:Decimal
- Type:Double
- Type:Double2
- Type:Double2x2
- Type:Double3
- Type:Double3x3
- Type:Double4
- Type:Double4x4
- Type:DoubleQ
E
F
H
I
- Type:IAsset`1
- Type:IAvatarAnchor
- Type:IAvatarPoseFilter
- Type:IButton
- Type:ICollider
- Type:IGrabbable
- Type:IKSolver
- Type:ILocomotionModule
- Type:ImageProjection
- Type:InputBlockMode
- Type:Int
- Type:Int2
- Type:Int3
- Type:Int4
- Type:InterpolationMode
- Type:IPlayable
- Type:ISyncRef
- Type:ITool
- Type:IAssetProvider`1
- Type:IComponent
- Type:IField`1
- Type:IFingerPoseSource
- Type:IValue`1
- Type:IWorldElement
L
- Type:LaserHitClass
- Type:LayoutDirection
- Type:LayoutHorizontalAlignment
- Type:LayoutMetric
- Type:LayoutVerticalAlignment
- Type:LineColorMode
- Type:ListFilterMode
- Type:LoadStage
- Type:LocomotionArchetype
- Type:LocomotionReference
- Type:LoopSetOptions
- Type:Long
- Type:Long2
- Type:Long3
- Type:Long4
- Type:LookAtUser.UserNode
M
P
- Type:ParticleAlignment
- Type:ParticleAnimationType
- Type:ParticleTrailMode
- Type:ParticleTrailTextureMode
- Type:PBR TextureFormat
- Type:PermissionState
- Type:PermissionViolationAction
- Type:PhotoEncodeFormat
- Type:PhysicsScalingMode
- Type:Platform
- Type:PointerType
- Type:PointProjection
- Type:PositionType
- Type:PrimaryLocomotionController
- Type:Primitive
- Type:Priority
- Type:ProgressStage
- Type:PropertyState
- Type:ProtoFluxNode
- Type:PlaybackAction
R
S
- Type:SampleRateMode
- Type:SaveType
- Type:ScreenshotType
- Type:SensationClass
- Type:SessionAccessLevel
- Type:SidewaysMovementMode
- Type:SimulationType
- Type:SizeFit
- Type:StaticCameraType
- Type:SteamChannel
- Type:SteamCloseReason
- Type:SyncDelegateList`1
- Type:SByte
- Type:ShadowCastMode
- Type:Short
- Type:ShoulderRotationMode
- Type:SkinnedBounds
- Type:SpriteProvider
- Type:StaticAudioClipProvider
- Type:StaticMesh
- Type:StaticTexture2D
- Type:StencilComparison
- Type:StencilOperation
- Type:SyncList`1
- Type:SyncPlayback
- Type:SyncRef`1