nice nice nice
This commit is contained in:
@@ -1,13 +1,32 @@
|
||||
using System.Linq;
|
||||
using Godot;
|
||||
using Godot.Collections;
|
||||
using yourareanaiceo;
|
||||
|
||||
[GlobalClass]
|
||||
public partial class MeetingResource : Resource
|
||||
{
|
||||
[Export]
|
||||
public Array<MeetingActionResource> OnMeetingStartActions { get; set; } = [];
|
||||
|
||||
[Export]
|
||||
public Array<MeetingActionResource> OnMeetingEndActions { get; set; } = [];
|
||||
|
||||
[Export]
|
||||
public string Title { get; set; }
|
||||
|
||||
[Export]
|
||||
public Color Color { get; set; }
|
||||
|
||||
public void StartMeeting(GameState gameState)
|
||||
{
|
||||
OnMeetingStartActions.ToList().ForEach(m => m.Execute(gameState));
|
||||
}
|
||||
|
||||
public void EndMeeting(GameState gameState)
|
||||
{
|
||||
OnMeetingEndActions.ToList().ForEach(m => m.Execute(gameState));
|
||||
}
|
||||
}
|
||||
|
||||
public partial class DummyMeetingResource : MeetingResource
|
||||
|
||||
Reference in New Issue
Block a user