-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
110 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using OpenDreamRuntime.Procs; | ||
|
||
namespace OpenDreamRuntime.Objects.Types; | ||
|
||
public sealed class DreamObjectGenerator : DreamObject { | ||
|
||
public DreamValue A { get; private set; } | ||
public DreamValue B { get; private set; } | ||
public GeneratorOutputType OutputType { get; private set; } | ||
public GeneratorDistribution Distribution { get; private set; } | ||
|
||
|
||
public DreamObjectGenerator(DreamObjectDefinition objectDefinition, DreamValue A, DreamValue B, GeneratorOutputType outputType, GeneratorDistribution dist) : base(objectDefinition) { | ||
this.A = A; | ||
this.B = B; | ||
this.OutputType = outputType; | ||
this.Distribution = dist; | ||
} | ||
public override void Initialize(DreamProcArguments args) { | ||
base.Initialize(args); | ||
} | ||
} | ||
|
||
public enum GeneratorOutputType { | ||
Num, | ||
Vector, | ||
Box, | ||
Color, | ||
Circle, | ||
Sphere, | ||
Square, | ||
Cube | ||
} | ||
|
||
public enum GeneratorDistribution { | ||
Uniform, | ||
Normal, | ||
Linear, | ||
Square | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters